package com.example.lcpharmacy.controller;

import com.example.lcpharmacy.entity.OrderEntity;
import com.example.lcpharmacy.entity.WarehouseEntity;
import com.example.lcpharmacy.mapper.WarehouseDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/warhouse")
public class WarHouseImpl {

    @Autowired
    WarehouseDao warehouseDao;

    @RequestMapping("/getWarhouse")
    public List<WarehouseEntity> subOrder() {
        //查询订单
        List<WarehouseEntity> all = warehouseDao.getAllOrder();
        return all;
    }
}
